package entity;


public class Student {
    private String name ;
    private int id ;
    private String sex ;
    private int age ;
    double GPA ;
    int grade ;
    Boolean inschool ;
    String phone;

    //无参构造
    public Student(){
        System.out.println("构造方法被调用");
    }
    //有参构造
    public Student(String name,int id ,String sex ,int age ,double GPA,int grade,Boolean inschool,String phone){
        this.name = name;
        this.id = id;
        this.sex = sex;
        this.age = age;
        this.GPA = GPA;
        this.grade = grade;
        this.inschool = inschool;
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", GPA=" + GPA +
                ", grade=" + grade +
                ", inschool=" + inschool +
                ", phone='" + phone + '\'' +
                '}';
    }
}
